import { PORT1 } from "@/api/config/servicePort";
import Http from "@/api/index";

const baseUrl = PORT1 + "/system/loupan/model_activity";

export const getActivities = (params: any) => {
  return Http.get(baseUrl + "/list", params);
};

export const createActivity = (params: any) => {
  return Http.post(baseUrl + "/add", params);
};

export const editActivity = (params: any) => {
  return Http.put(baseUrl + "/edit", params);
};

export const getRegion = () => {
  return Http.get(baseUrl + "/region");
};
export const getAll = (params: any) => {
  return Http.get(baseUrl + "/all", params);
};

export const getActivitiesInLouPan = (id: number) => {
  return Http.get(baseUrl + "/get_model_by_loupan", { id });
};
